package com.gitee.pifeng.monitoring.ui.business.web.vo;

import lombok.*;
import lombok.experimental.Accessors;

import java.util.Objects;

@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class VisLinkVo {

    private String from;

    private String to;

    private String label;

    private String color;

    private String length = "400";

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VisLinkVo person = (VisLinkVo) o;
        return Objects.equals(from, person.from) && Objects.equals(to, person.to);
    }

    @Override
    public int hashCode() {
        return Objects.hash(from, to);
    }

}
